package com.xoa.dao.financialManage.charge;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.xoa.model.financialManage.charge.ChargeList;
import com.xoa.model.financialManage.charge.ChargePermission;
import com.xoa.model.financialManage.charge.ChargePermissionExample;
import com.xoa.model.financialManage.charge.ChargePermissionWithBLOBs;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface ChargePermissionMapper extends BaseMapper<ChargePermission> {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    int countByExample(ChargePermissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    int deleteByExample(ChargePermissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(Integer chargePermissionId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    int insert(ChargePermissionWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    int insertSelective(ChargePermissionWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    List<ChargePermissionWithBLOBs> selectByExampleWithBLOBs(ChargePermissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    List<ChargePermission> selectByExample(ChargePermissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    ChargePermissionWithBLOBs selectByPrimaryKey(Integer chargePermissionId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    int updateByExampleSelective(@Param("record") ChargePermissionWithBLOBs record, @Param("example") ChargePermissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    int updateByExampleWithBLOBs(@Param("record") ChargePermissionWithBLOBs record, @Param("example") ChargePermissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    int updateByExample(@Param("record") ChargePermission record, @Param("example") ChargePermissionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(ChargePermissionWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    int updateByPrimaryKeyWithBLOBs(ChargePermissionWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table charge_permission
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(ChargePermission record);

    //批量删除
    int delPermissionIds(@Param("asList") List<String> asList);

    //条件查询
    List<ChargePermissionWithBLOBs> findPermissionAll(Map map);

}